class Label {
    constructor(dir,text, x, y) {
        this.dir=dir
        this.type = 'Label'
        this.text = text
        this.x = x
        this.y = y
        this.count()
        this.font='40px serif'
    }
    count() {
        window.Lid++
    }
    static reduce() {
        window.Lid--
    }
    setSize(x){
        this.font = x+'px serif'
    }
    draw(){
        this.dir.ctx.font = this.font
        this.dir.ctx.fillText(this.text, this.x, this.y)
    }
    update(){

    }
}